package com.zxq.common.middleware.gateway;

import com.zxq.common.middleware.emuns.RedisCategory;

public interface RedisGateway {

  long incr(RedisCategory category, String key);

  boolean setnx(RedisCategory category, String key, String value);

  boolean setnx(RedisCategory category, String key, String value, Integer keepExpireTime);

  boolean set(RedisCategory category, String key, String value);

  boolean setEx(RedisCategory category, String key, Object value, int expire);

  String get(RedisCategory category, String key);

  boolean delete(RedisCategory category, String key);
}
